package day01

/**
  * Created by root on 2018/11/20.
  */
object ConditionTest {
  def main(args: Array[String]): Unit = {
    val x = 1

    val y = if(x>0){
      println("true")
      1
    }else{
      println("flase")
      -1
    }
    println(y)

    val m = if(x>2) 1 else 3
    println(m)
  }

}
